package cn.daniel.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户购买闲置物品的订单表
 * </p>
 *
 * @author Daniel_li
 * @since 2021-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Order对象", description="用户购买闲置物品的订单表")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单ID")
    @TableId(value = "order_id", type = IdType.AUTO)
    private String orderId;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "闲置物品ID")
    private String goodsId;

    @ApiModelProperty(value = "闲置物品名称")
    private String goodsName;

    @ApiModelProperty(value = "闲置物品的封面")
    private String goodsCover;

    @ApiModelProperty(value = "闲置物品出售的用户ID")
    private String goodsUserId;

    @ApiModelProperty(value = "购买物品的用户ID")
    private String userId;

    @ApiModelProperty(value = "购买物品的用户ID")
    private String userName;

    @ApiModelProperty(value = "订单金额（分）")
    private BigDecimal totalFee;

    @ApiModelProperty(value = "支付类型（1：微信 2：支付宝）")
    private Integer payType;

    @ApiModelProperty(value = "订单状态（0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单）")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "支付交易时间")
    private Date payTime;

    @ApiModelProperty(value = "订单备注")
    private String note;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date modifyTime;


}
